<?php
define( '_SYS', 1 );
define('PATH_BASE', dirname(__FILE__) );
define('SELF',pathinfo(__FILE__, PATHINFO_BASENAME));
define('FCPATH', __FILE__);//uri中处理
define( 'DS', DIRECTORY_SEPARATOR );
define('EXT',".php");
//str_ireplace有问题 php4下面
define('WEBURL','http://'.$_SERVER['HTTP_HOST'].str_replace('/'.SELF,'',$_SERVER['SCRIPT_NAME']));
if(SELF=='') define('WEBSELF',WEBURL);
else define('WEBSELF',WEBURL.'/'.SELF);
define( 'SITEURL',	WEBURL );
require_once ( PATH_BASE.DS.'includes'.DS.'defines'.EXT );
require_once ( PATH_BASE.DS.'includes'.DS.'framework'.EXT );
?>